<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .z1, .z2, .z3 {
            position: absolute;
            width: 200px;
            height: 100px;
            padding: 5px 10px;
            color: #fff;
            text-align: right;
        }

        .z1 {
            z-index: 1;
            background: #000;
        }

        .z2 {
            z-index: 2;
            top: 30px;
            left: 30px;
            background: #C00;
        }

        .z3 {
            z-index: 3;
            top: 60px;
            left: 60px;
            background: #999;
        }
    </style>
</head>
<body>
<div class="z1">DIV1</div>
<div class="z2">DIV2</div>
<div class="z3">DIV3</div>
</body>
</html>